package spring_annotation.pojo;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Component
public class Car {



    public Car(){
        System.out.println("Car Constructor....");
    }

//    @PostConstruct
    public void init(){
        System.out.println("Car init...");
    }

//    @PreDestroy
    public void destroy(){
        System.out.println("Car destroy...");
    }

}
